how to solve cast to device is not working in windows 11